package com.user.controller;

import com.apis.user.UserFollowApi;

import com.user.service.UserFollowService;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.dtos.UserRelationDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user/api/v1/user")
@RestController
public class ApUserFloowController implements UserFollowApi {

    @Autowired
    private UserFollowService userFollowService;


//    @Autowired
//    ApBehaviorEntryService apBehaviorEntryService;

    @PostMapping("/user_follow")
    @Override
    public ResponseResult Follow(@RequestBody UserRelationDto dto) {
        return userFollowService.follow(dto);
    }

//    @PostMapping("dianzan")
//    @Override
//    public ResponseResult dianzan(@RequestBody LikesBehaviorDto dto) {
//        return apBehaviorEntryService.dianzan(dto);
//    }


}
